/*
 *      Created on: Mar 8, 2011
 *      Author: topcoder
 */
#include <VolumeUnit.h>

namespace 
{
    const unsigned int TSP_TO_BASEUNIT  = 1;
    const unsigned int TBSP_TO_BASEUNIT = 3;
    const unsigned int OZ_TO_BASEUNIT   = 6;
}

VolumeUnit::VolumeUnit(const unsigned int factor, const string name)
:Unit(factor, name)
{
}

const VolumeUnit& VolumeUnit::getOz()
{
    static VolumeUnit oz(OZ_TO_BASEUNIT, "OZ");
    return oz;
}

const VolumeUnit& VolumeUnit::getTbsp()
{
    static VolumeUnit tbsp(TBSP_TO_BASEUNIT, "TBSP");
    return tbsp;
}

const VolumeUnit& VolumeUnit::getTsp()
{
    static VolumeUnit tsp(TSP_TO_BASEUNIT, "TSP");
    return tsp;
}


